package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车对象 cart_info
 *
 * @author ruoyi
 * @date 2025-04-11
 */
public class CartInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 购物车项目ID，主键
     */
    private Long id;

    /**
     * 用户ID，关联用户表
     */
    @Excel(name = "用户ID，关联用户表")
    private Long userId;

    private String userName;

    /**
     * 客服ID，关联客服表
     */
    @Excel(name = "客服ID，关联客服表")
    private String customerNumber;

    private String customerName;

    /**
     * 产品ID，关联产品表
     */
    @Excel(name = "产品ID，关联产品表")
    private Long productId;

    /**
     * 产品数量
     */
    @Excel(name = "产品数量")
    private Long quantity;

    /**
     * 产品封面
     */
    @Excel(name = "产品封面")
    private String productCover;

    /**
     * 产品价格
     */
    @Excel(name = "产品价格")
    private BigDecimal productPrice;

    /**
     * 产品标题
     */
    @Excel(name = "产品标题")
    private String productTitle;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setCustomerNumber(String customerNumber) {
        this.customerNumber = customerNumber;
    }

    public String getCustomerNumber() {
        return customerNumber;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    public Long getQuantity() {
        return quantity;
    }

    public void setProductCover(String productCover) {
        this.productCover = productCover;
    }

    public String getProductCover() {
        return productCover;
    }

    public void setProductPrice(BigDecimal productPrice) {
        this.productPrice = productPrice;
    }

    public BigDecimal getProductPrice() {
        return productPrice;
    }

    public void setProductTitle(String productTitle) {
        this.productTitle = productTitle;
    }

    public String getProductTitle() {
        return productTitle;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("customerNumber", getCustomerNumber())
                .append("productId", getProductId())
                .append("quantity", getQuantity())
                .append("productCover", getProductCover())
                .append("productPrice", getProductPrice())
                .append("productTitle", getProductTitle())
                .append("createdAt", getCreatedAt())
                .append("updatedAt", getUpdatedAt())
                .toString();
    }
}
